package com.sls.game.dao;

import java.util.List;

import com.sls.game.page.Pagination;
import com.sls.game.pojo.TencentGoodsInfo;

/**
 * 
 * @description 腾讯产品DAO
 * @author Wangxuegang
 * @date 2012-9-17
 * 
 */
public interface TencentGoodsInfoDAO {
	/**
	 * 分页查询
	 * 
	 * @param tencentGoodsInfo
	 * @return
	 */
	public Pagination<TencentGoodsInfo> queryPaginationList(
			TencentGoodsInfo tencentGoodsInfo);

	/**
	 * 根据商品编号，查询单条记录
	 * 
	 * @param productName
	 * @return
	 */
	public TencentGoodsInfo queryGoodsInfoGoodsId(String goodsId);

	/**
	 * 确认审核，修改记录
	 * 
	 * @param tencentGoodsInfo
	 */
	public void saveAuditGoods(TencentGoodsInfo tencentGoodsInfo);

	/**
	 * 插入记录
	 * 
	 * @param tencentGoodsInfo
	 */
	public void insert(TencentGoodsInfo tencentGoodsInfo);

	/**
	 * 根据产品名称查询记录
	 * 
	 * @param productName
	 * @return
	 */
	public TencentGoodsInfo queryGoodsByName(String productName);

	/**
	 * 查询商品最大id
	 * 
	 * @return
	 */
	public String queryMaxGoodsId();

	/**
	 * 查询所有信息
	 * 
	 * @return
	 */
	public List<TencentGoodsInfo> queryAllGoodsInfo();

	/**
	 * 修改审核状态
	 * 
	 * @param tencentGoodsInfo
	 */
	public void updateState(TencentGoodsInfo tencentGoodsInfo);

	public void update(TencentGoodsInfo tencentGoodsInfo);

}
